// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_FIN_MAP_RECEIVED_DELIVERY
// * CreateDate    : 2014-06-05 18:29:51
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:29:51
// * LastChanger   : 2014-06-05 18:29:51
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class FinMapReceivedDeliveryEntity : EntityBase
    {
        public FinMapReceivedDeliveryTable TableSchema
        {
            get
            {
                return FinMapReceivedDeliveryTable.Current;
            }
		}
		
		public FinMapReceivedDeliveryEntity()
        {

        }
		
		public FinMapReceivedDeliveryEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.DeliveryItemId = Convert.ToString(CommonFunctions.ToObject(dr["DELIVERY_ITEM_ID"]));
			this.ReceivedDetailId = Convert.ToString(CommonFunctions.ToObject(dr["RECEIVED_DETAIL_ID"]));
        }
		
		public FinMapReceivedDeliveryEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.DeliveryItemId = Convert.ToString(CommonFunctions.ToObject(dr["DELIVERY_ITEM_ID"]));
			this.ReceivedDetailId = Convert.ToString(CommonFunctions.ToObject(dr["RECEIVED_DETAIL_ID"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return FinMapReceivedDeliveryTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public string DeliveryItemId
        {
            get { return Convert.ToString(GetData(FinMapReceivedDeliveryTable.C_DELIVERY_ITEM_ID)); }
            set { SetData(FinMapReceivedDeliveryTable.C_DELIVERY_ITEM_ID, value); }
        }
		
        [DataMember]
        public string ReceivedDetailId
        {
            get { return Convert.ToString(GetData(FinMapReceivedDeliveryTable.C_RECEIVED_DETAIL_ID)); }
            set { SetData(FinMapReceivedDeliveryTable.C_RECEIVED_DETAIL_ID, value); }
        }
		
		#endregion
	}
	
	
}	

